package com.itheima.pinda.task;


import com.itheima.pinda.service.TaskOrderClassifyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 智能调度组件
 *
 * @author llhuang10
 * @date 2021/10/25 12:28
 */
@Slf4j
@Component("dispatchTask")
public class DispatchTask {

    @Resource
    private TaskOrderClassifyService taskOrderClassifyService;

    /**
     * 智能调度
     *
     * @param businessId 机构Id
     * @param params     参数
     * @param jobId      任务Id
     * @param logId      任务日志Id
     */
    public void run(String businessId, String params, String jobId, String logId) {
        log.info("智能调度正在执行，参数为: {},{},{},{}", businessId, params, jobId, logId);
    }
}
